package com.tledu.mvc03.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

/**
 * @author Antg
 * @date 2021/8/12  14:42
 */
@Controller
@SessionAttributes("username")
public class TestController {
    @RequestMapping("/test")
    public String test(Model model) {
        model.addAttribute("username","测试一下");
        return "success";
    }
}
